//
//  HPHttpTool.h
//  韩鹏微博
//
//  Created by hanpeng on 15-11-23.
//  Copyright (c) 2015年 hanpeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol AFMultipartFormData;

@interface HPHttpTool : NSObject
+(void)POSTWithUrl:(NSString *)url param:(NSDictionary *)param
succees:(void (^) (id json)) succees failure :(void (^) (NSError * error )) failure;
                    
+(void)GETWithUrl:(NSString *)url param:(NSDictionary *)param
           succees:(void (^) (id json)) succees failure :(void (^) (NSError * error )) failure;


+(void)POSTWithUrl:(NSString *)url param:(NSDictionary *)param constructingBodyWithBlock:(void(^)(id< AFMultipartFormData> formData))block succees:(void (^) (id json)) succees failure :(void (^) (NSError * error )) failure;

@end
